from flask import Flask
from flask_uploads import IMAGES, UploadSet, configure_uploads

# 创建上传集
photos = UploadSet('photos', IMAGES)

def init_upload(app: Flask):
    configure_uploads(app, photos)
